package com.zz.concurrent.base;

/**
 * Author: zhangzhen
 * DATE: Created in 2018/8/14 10:25
 * Description:
 */
public class KeyPersonThread extends Thread {

    public void run() {
        System.out.println(Thread.currentThread().getName() + "开始了战斗!");
        for(int i = 0;i < 10;i++) {
            System.out.println(Thread.currentThread().getName() + "攻击隋军!");
        }
        System.out.println(Thread.currentThread().getName() + "结束了战斗!");
    }
}
